/* eslint-disable  */
import Vue from 'vue'
import Router from 'vue-router'
import VueResource from 'vue-resource'
import goods from '@/components/goods/goods.vue'
import seller from '@/components/seller/seller.vue'
import ratings from '@/components/ratings/ratings.vue'
import shop from '@/components/shop/shop.vue'
import movie from '@/components/movie/movie.vue'
import moviedetail from '@/components/movieDetail/moviedetail.vue'

Vue.use(Router)
Vue.use(VueResource)

export default new Router({
  routes: [
    {
      path: '/'
    },
    {
      path: '/shop',component: shop,
      children: [
        {path:'',component: goods},
        {path:'goods',component: goods},
        {path:'ratings',component: ratings},
        {path:'seller',component: seller}
      ]
    },
    {
      path: '/movie',component: movie,
      children: [
        {path:'detail/:id',component: moviedetail}
      ]
    }
  ]
})
